export default function (selector) {
    return new Promise((resolve,reject)=>{
        const query = wx.createSelectorQuery()
        query.select(selector).boundingClientRect()
        query.exec((res)=>{
            const { height } = res[0]
            resolve(height)
        })
    })
}